package com.school.movie.common.bean;

import java.util.List;


/**
 * 封装分页信息的bean
 *
 * @author zhaoren
 */
public class PageBean {
    private int curPage = 1;
    public static int pageRow = 500;
    private int totalRows;
    private int startRow;
    private List data;


    public int getCur_page() {
        return curPage;
    }

    public void setCur_page(int cur_page) {
        this.curPage = cur_page;
    }

    public int getPageRow() {
        return pageRow;
    }

    public void setPageRow(int pageRow) {
        this.pageRow = pageRow;
    }

    public int getTotalRows() {
        return totalRows;
    }

    public void setTotalRows(int totalRows) {
        this.totalRows = totalRows;
    }

    public List getData() {
        return data;
    }

    public void setData(List data) {
        this.data = data;
    }

    public int getStartRow() {

        this.startRow = (this.curPage - 1) * this.pageRow;
        return startRow;
    }

    public void setStartRow(int startRow) {
        this.startRow = startRow;
    }
}
